package com.surveyingandmapping.ionospheretec.service;

import com.surveyingandmapping.ionospheretec.model.ObservationData;
import com.surveyingandmapping.ionospheretec.model.TECResult;
import com.surveyingandmapping.ionospheretec.service.impl.ObservationDataDto;
import jxl.write.WriteException;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Carly rea jepsen on 2016/3/22.
 */
public interface FileService {

    public final static List<ObservationDataDto> observationDatalist = new ArrayList<ObservationDataDto>();

    /**
     * 计算VTEC
     * @return
     */
    List<TECResult> getTecRsult();
    
    /**
     * 读取单个测量文件
     * @param file
     * @return
     */
    public void getObservationData(File file) throws FileNotFoundException,IOException,ParseException;

    /**
     * 将数据保存为Excel文件
     * @param path
     * @throws IOException
     * @throws WriteException
     * @throws ParseException
     */
    public void SaveData(String path) throws IOException,WriteException,ParseException;

}
